package com.changpei.core.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.changpei.core.dao.ContentTmpMapper;
import com.changpei.core.pojo.ContentTmp;
import com.changpei.core.service.ContentTmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * <p>Title: ContentTmp</p>
 * <p>Description: ContentTmp业务层接口实现类</p>
 * @author weibiao
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ContentTmpServiceImpl extends ServiceImpl<ContentTmpMapper, ContentTmp> implements ContentTmpService {

    @Autowired
    private ContentTmpMapper contentTmpMapper;

    @Override
    public boolean truncate() {
        try {
            contentTmpMapper.truncate();
            return true;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
}
